package top.huhuiyu.springboot3.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

@Data
// 实体对应的表名称
@TableName("tb_files")
public class TbFiles implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer userId;
    private String fileName;
    private Long fileSize;
    private String contentType;
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private Date createTime;

}
